﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Table_Storage_Component
{
    public partial class AboutForm : Form
    {
        public AboutForm()
        {
            
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void about_Load(object sender, EventArgs e)
        {
            //int posX = Parent.Location.X + ((Parent.Size.Width - this.Size.Width) / 2);
            //int posY = Parent.Location.Y + ((Parent.Size.Height - this.Size.Height) / 2);
            //this.Left = posX;
            //this.Top = posY;
            
            this.VersionLbl.Text = this.ProductVersion;
            this.UpdatedLbl.Text = new FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime.ToString();

        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.sauget-ch.fr");  
        }
    }
}
